package com.cms.config;

public class MessageDef {
    public static final int SUCCESS_CODE = 0;
    public static final int INVALID_USER = 1;
    public static final int INVALID_PASSWORD = 2;
    
    public static final String SUCCESS_DESC = "success_desc";
    public static final String INVALID_USER_DESC = "invalid_user_desc";
    public static final String INVALID_PASSWORD_DESC = "invalid_password_desc";
    
    public static String getMessageDesc(int message_id) {
        switch (message_id) {
          case SUCCESS_CODE: return SUCCESS_DESC;
          case INVALID_USER: return INVALID_USER_DESC;
          case INVALID_PASSWORD: return INVALID_PASSWORD_DESC;
          default: return INVALID_USER_DESC;
        }
    }
}
